define([],function(){
	var tpl = {};

	tpl.historyList = function(){
		return historyList();
	}
	tpl.info = function(){
		return info();
	}
	tpl.result = function(){
		return result();
	}
        tpl.resultPrint = function(){
                return resultPrint();
        }

	var historyList = function(){
		return 	'<script id="dstHistoryRecord_historyList" type="text/html">'+
			'    <ul class="history-list">'+
			'	{{each list as value i}}'+
                        '        <li data-id="{{value.id}}">'+
                        '            <span>{{value.testTime}}</span>'+
                        '            <span>（{{value.ageDay}}天）</span>'+
                        '        </li>'+
                        '	{{/each}}'+
                        '    </ul>'+
			'</script>';
	}
	var info = function(){
		return 	'<script id="dstHistoryRecord_info" type="text/html">'+
			'    <div class="item">'+
                        '        <div class="item-label">姓名：</div>'+
                        '        <div class="item-text">{{userName}}</div>'+
                        '    </div>'+
                        '    <div class="item">'+
                        '        <div class="item-label">性别：</div>'+
                        '        <div class="item-text">{{sex}}</div>'+
                        '    </div>'+
                        '    <div class="item">'+
                        '        <div class="item-label">出生日期：</div>'+
                        '        <div class="item-text">{{birthday}}</div>'+
                        '    </div>'+
                        '    <div class="item">'+
                        '        <div class="item-label">测试日期：</div>'+
                        '        <div class="item-text">{{testTime}}</div>'+
                        '    </div>'+
                        '    <div class="item">'+
                        '        <div class="item-label">实际年龄：</div>'+
                        '        <div class="item-text">{{age}}</div>'+
                        '    </div>'+
                        '    <div class="item">'+
                        '        <div class="item-label">测试者：</div>'+
                        '        <div class="item-text">{{doctorName}}</div>'+
                        '    </div>'+
			'</script>';
	}
	var result = function(){
		return 	'<script id="dstHistoryRecord_result" type="text/html">'+
			'    <div class="result-chart clearfix">'+
                        '        <div class="cucurbit-wrap">'+
                        '            <div class="cucurbit">'+
                        '                <img src="page/assess/imgs/dst/bg-cucurbit.png">'+
                        '                <div class="tit">'+
                        '                    <span>DQ</span>'+
                        '                    <span>发育商</span>'+
                        '                </div>'+
                        '                <div class="con">{{dqScore}}</div>'+
                        '            </div>'+
                        '            <div class="cucurbit-tip">{{DQLevel}}</div>'+
                        '        </div>'+
                        '        <div id="cirleChart" class="clock"></div>'+
                        '        <div class="cucurbit-wrap">'+
                        '            <div class="cucurbit">'+
                        '                <img src="page/assess/imgs/dst/bg-cucurbit.png">'+
                        '                <div class="tit">'+
                        '                    <span>MI</span>'+
                        '                    <span>智力指数</span>'+
                        '                </div>'+
                        '                <div class="con">{{miScore}}</div>'+
                        '            </div>'+
                        '            <div class="cucurbit-tip">{{MILevel}}</div>'+
                        '        </div>'+
                        '    </div>'+
                        '    <div class="result-table clearfix">'+
                        '           <div class="title">原始分</div>'+
                        '	    <div class="item">'+
                        '	        <div class="tit">智力</div>'+
                        '	        <div class="text">{{intelligenceScore}}</div>'+
                        '	    </div>'+
                        '	    <div class="item">'+
                        '	        <div class="tit">社会交往</div>'+
                        '	        <div class="text">{{sociologyScore}}</div>'+
                        '	    </div>'+
                        '	    <div class="item">'+
                        '	        <div class="tit">运动</div>'+
                        '	        <div class="text">{{sportsScore}}</div>'+
                        '	    </div>'+
                        '    </div>'+
                        '    <div class="result-unfinished">'+
                        '	   <div class="tit">未完成项：</div>'+
                        '   	   <div class="con">{{unfinished}}</div>'+
                        '    </div>'+
			'</script>';
	}

        var resultPrint = function(){
                return  '<script id="dstHistoryRecord_resultPrint" type="text/html">'+
                        '    <div class="result-chart clearfix">'+
                        '        <div class="cucurbit-wrap">'+
                        '            <div class="cucurbit">'+
                        '                <img src="page/assess/imgs/dst/bg-cucurbit.png">'+
                        '                <div class="tit">'+
                        '                    <span>DQ</span>'+
                        '                    <span>发育商</span>'+
                        '                </div>'+
                        '                <div class="con">{{dqScore}}</div>'+
                        '            </div>'+
                        '            <div class="cucurbit-tip">{{DQLevel}}</div>'+
                        '        </div>'+
                        '        <div id="cirleChart-print" class="clock"></div>'+
                        '        <div class="cucurbit-wrap">'+
                        '            <div class="cucurbit">'+
                        '                <img src="page/assess/imgs/dst/bg-cucurbit.png">'+
                        '                <div class="tit">'+
                        '                    <span>MI</span>'+
                        '                    <span>智力指数</span>'+
                        '                </div>'+
                        '                <div class="con">{{miScore}}</div>'+
                        '            </div>'+
                        '            <div class="cucurbit-tip">{{MILevel}}</div>'+
                        '        </div>'+
                        '    </div>'+
                        '    <div class="result-table clearfix">'+
                        '           <div class="title">原始分</div>'+
                        '           <div class="item">'+
                        '               <div class="tit">智力</div>'+
                        '               <div class="text">{{intelligenceScore}}</div>'+
                        '           </div>'+
                        '           <div class="item">'+
                        '               <div class="tit">社会交往</div>'+
                        '               <div class="text">{{sociologyScore}}</div>'+
                        '           </div>'+
                        '           <div class="item">'+
                        '               <div class="tit">运动</div>'+
                        '               <div class="text">{{sportsScore}}</div>'+
                        '           </div>'+
                        '    </div>'+
                        '    <div class="result-unfinished">'+
                        '          <div class="tit">未完成项：</div>'+
                        '          <div class="con">{{unfinished}}</div>'+
                        '    </div>'+
                        '</script>';
        }

	return tpl;
});